package com.paranoidmonkey.ode;

public class Box extends Geom {
	public Box(Space space, float lx, float ly,float lz){
		handle=AndrODE.dCreateBox(space.handle, lx, ly, lz);
	}

	public void setLengths(float lx,float ly, float lz){
		AndrODE.dGeomBoxSetLengths(handle, lx, ly, lz);
	}

	public Vector3 getLengths(){
		Vector3 result=new Vector3();
		AndrODE.dGeomBoxGetLengths(handle, result.data);
		return result;
	}

	public float pointDepth(float x,	float y, float z){
		return AndrODE.dGeomBoxPointDepth(handle, x, y, z);
	}

}
